//
//  ViewController.m
//  dd
//
//  Created by hanweiguang on 2019/1/26.
//  Copyright © 2019年 hanweiguang. All rights reserved.
//

#import "HomeViewController.h"

#import "Masonry.h"
#import "UIColor+extension.h"

@interface HomeViewController ()

@end

@implementation HomeViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self initView];


}

/**
 * 初始化view
 */
- (void)initView {

    UILabel *label = UILabel.new;
    label.text = @"测试11";
    label.textColor = [UIColor colorWithHexString:@"ff0000"];
    [self.view addSubview:label];
    [label makeConstraints:^(MASConstraintMaker *make) {
        make.top.equalTo(self.view).offset(10);
        make.height.equalTo(30);
        make.trailing.equalTo(self.view).offset(-10);

    }];



}


@end
